import java.sql.SQLOutput;

public class Test {
    public static void main(String[] args) {
        BinaryTree binaryTree = new BinaryTree();
        BinaryTree.TreeNode A = binaryTree.createTree();
        //System.out.println(A.val);
        /*binaryTree.preOrder(A);
        binaryTree.inOrder(A);
        binaryTree.postOrder(A);*/
        //System.out.println(binaryTree.size2(A));
       //System.out.println(binaryTree.getLeafNodeCount2(A));
        //System.out.println(binaryTree.getKLevelNodeCount(A, 3));
        //System.out.println(binaryTree.getHeight(A));
        //binaryTree.levelOrder(A);
        System.out.println(binaryTree.isCompleteTree(A));
    }
}
